<template>
  <div>
    <el-table
      ref="multipleTable"
      :data="tableData"
      highlight-current-row
      style="width: 100%"
      @selection-change="handleSelectionChange"
    >
      <el-table-column type="selection" width="55" />
      <el-table-column prop="companyName" align="center" label="公司名称" />
      <el-table-column label="创建时间" prop="createTime" />
    </el-table>
  </div>
</template>

<script>
export default {
  name: 'Company',
  props: {
    tableData: {
      type: Array,
      default: () => []
    }
  },
  methods: {
    handleSelectionChange(val) {
      this.$emit('handleSelectionChange', val)
    }
  }
}
</script>

<style>
</style>
